package com.design.composite.repository;

import com.design.composite.entity.Dict;
import org.springframework.data.jpa.repository.JpaRepository;

/**
 * @author liuyajun
 */
public interface DictRepository extends JpaRepository<Dict, Integer> {

    /**
     * 根据code获取字典项
     *
     * @param code
     * @return
     */
    Dict findByCode(String code);

}

